package com.dragon.loan.repository;

import com.dragon.app.ykd.dto.AcLoanApplyNode;
import com.dragon.common.repository.mybatis.MyBatisRepository;

import java.util.List;

@MyBatisRepository
public interface AcLoanApplyNodeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AcLoanApplyNode record);

    int insertSelective(AcLoanApplyNode record);

    AcLoanApplyNode selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AcLoanApplyNode record);

    int updateByPrimaryKey(AcLoanApplyNode record);

    /**
	 * 查询最新的节点信息（并返回进件信息）
	 * 
	 * @param loanId
	 *            借款编号
	 * @return
	 */
	AcLoanApplyNode queryLastApplyNode(String loanId);

	/**
	 * 查询节点信息
	 * 
	 * @param acLoanApplyNode
	 * 
	 * @return
	 */
	List<AcLoanApplyNode> queryApplyNode(AcLoanApplyNode acLoanApplyNode);
}